home *** CD-ROM | disk | FTP | other *** search
- Path: news.ust.hk!cskmchui
- From: cskmchui@uxmail.ust.hk (Chui Ka Ming)
- Newsgroups: comp.lang.c
- Subject: What is localhost?
- Date: 5 Apr 1996 03:43:01 GMT
- Organization: The Hong Kong University of Science and Technology
- Message-ID: <4k24s5$rt1@ustsu10.ust.hk>
- NNTP-Posting-Host: csl3su30.cs.ust.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Hello all,
-
- I am trying to writing a echo server and client. when
- I had started the server and then started client on the same host
- I typed : client localhost port_name . However, the connection
- was refused. I known that some internet program able to bind
- localhost to the offical name. Could you tell me how to write
- it? For the server, I got the host address by getenv("HOST")
- then gethostbyname() function.
-
- Thank a lot =>
- Henry Chui
-
-